home *** CD-ROM | disk | FTP | other *** search
- Path: Rezonet.net!news
- From: ray@ultimate-tech.com (Ray Dunn)
- Newsgroups: comp.lang.c
- Subject: Re: (no subject)
- Date: 26 Jan 1996 16:55:31 GMT
- Organization: Ultimate Technographics Inc.
- Message-ID: <4eb123$r0c@ns.RezoNet.NET>
- References: <4e71v9$iqb@dingo.cc.uq.oz.au> <3107710C.B26@cmt.lpr.mail.carel.fi>
- NNTP-Posting-Host: 204.19.230.7
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- In referenced article, Ari Lukumies says...
- >coonsta@peg.apc.org wrote:
- >>
- >> x = thepicture.buffer[32000]; // doesn't seem to work.
- >
- >Try using
- >
- > x = (int *)&thepicture.buffer[32000];
- >or
- > x = (int *)(thepicture.buffer + 32000);
-
- Both of these suggestions attempt to put the address of the array
- element in x, which is an int, not a pointer to an int.
-
- The original poster wnated the value of the element, not its address.
-
- The problem lay elsewhere.
- --
- Ray Dunn (opinions are my own) | Phone: (514) 938 9050
- Montreal | Phax : (514) 938 5225
- ray@ultimate-tech.com | Home : (514) 630 3749
-
-